﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataQuality" targetNamespace="http://tempuri.org/DataQuality.xsd" xmlns:mstns="http://tempuri.org/DataQuality.xsd" xmlns="http://tempuri.org/DataQuality.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="openXDAConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="openXDAConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FaultData.Properties.Settings.GlobalReference.Default.openXDAConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DefaultDataQualityRangeLimitTableAdapter" GeneratorDataComponentClassName="DefaultDataQualityRangeLimitTableAdapter" Name="DefaultDataQualityRangeLimit" UserDataComponentName="DefaultDataQualityRangeLimitTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.DefaultDataQualityRangeLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[DefaultDataQualityRangeLimit] WHERE (([ID] = @Original_ID) AND ([MeasurementTypeID] = @Original_MeasurementTypeID) AND ([MeasurementCharacteristicID] = @Original_MeasurementCharacteristicID) AND ((@IsNull_High = 1 AND [High] IS NULL) OR ([High] = @Original_High)) AND ((@IsNull_Low = 1 AND [Low] IS NULL) OR ([Low] = @Original_Low)) AND ([RangeInclusive] = @Original_RangeInclusive) AND ([PerUnit] = @Original_PerUnit))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MeasurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MeasurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_High" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Low" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[DefaultDataQualityRangeLimit] ([MeasurementTypeID], [MeasurementCharacteristicID], [High], [Low], [RangeInclusive], [PerUnit]) VALUES (@MeasurementTypeID, @MeasurementCharacteristicID, @High, @Low, @RangeInclusive, @PerUnit);
SELECT ID, MeasurementTypeID, MeasurementCharacteristicID, High, Low, RangeInclusive, PerUnit FROM DefaultDataQualityRangeLimit WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MeasurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MeasurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, MeasurementTypeID, MeasurementCharacteristicID, High, Low, RangeInclusive, PerUnit FROM dbo.DefaultDataQualityRangeLimit</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[DefaultDataQualityRangeLimit] SET [MeasurementTypeID] = @MeasurementTypeID, [MeasurementCharacteristicID] = @MeasurementCharacteristicID, [High] = @High, [Low] = @Low, [RangeInclusive] = @RangeInclusive, [PerUnit] = @PerUnit WHERE (([ID] = @Original_ID) AND ([MeasurementTypeID] = @Original_MeasurementTypeID) AND ([MeasurementCharacteristicID] = @Original_MeasurementCharacteristicID) AND ((@IsNull_High = 1 AND [High] IS NULL) OR ([High] = @Original_High)) AND ((@IsNull_Low = 1 AND [Low] IS NULL) OR ([Low] = @Original_Low)) AND ([RangeInclusive] = @Original_RangeInclusive) AND ([PerUnit] = @Original_PerUnit));
SELECT ID, MeasurementTypeID, MeasurementCharacteristicID, High, Low, RangeInclusive, PerUnit FROM DefaultDataQualityRangeLimit WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MeasurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MeasurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MeasurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MeasurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_High" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Low" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="MeasurementTypeID" DataSetColumn="MeasurementTypeID" />
              <Mapping SourceColumn="MeasurementCharacteristicID" DataSetColumn="MeasurementCharacteristicID" />
              <Mapping SourceColumn="High" DataSetColumn="High" />
              <Mapping SourceColumn="Low" DataSetColumn="Low" />
              <Mapping SourceColumn="RangeInclusive" DataSetColumn="RangeInclusive" />
              <Mapping SourceColumn="PerUnit" DataSetColumn="PerUnit" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.DefaultDataQualityRangeLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, MeasurementTypeID, MeasurementCharacteristicID, High, Low, RangeInclusive, PerUnit FROM dbo.DefaultDataQualityRangeLimit WHERE MeasurementTypeID = @measurementTypeID AND MeasurementCharacteristicID = @measurementCharacteristicID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="measurementTypeID" ColumnName="MeasurementTypeID" DataSourceName="openXDA.dbo.DefaultDataQualityRangeLimit" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@measurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="measurementCharacteristicID" ColumnName="MeasurementCharacteristicID" DataSourceName="openXDA.dbo.DefaultDataQualityRangeLimit" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@measurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataQualityRangeLimitTableAdapter" GeneratorDataComponentClassName="DataQualityRangeLimitTableAdapter" Name="DataQualityRangeLimit" UserDataComponentName="DataQualityRangeLimitTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.DataQualityRangeLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[DataQualityRangeLimit] WHERE (([ID] = @Original_ID) AND ([ChannelID] = @Original_ChannelID) AND ((@IsNull_High = 1 AND [High] IS NULL) OR ([High] = @Original_High)) AND ((@IsNull_Low = 1 AND [Low] IS NULL) OR ([Low] = @Original_Low)) AND ([RangeInclusive] = @Original_RangeInclusive) AND ([PerUnit] = @Original_PerUnit) AND ([Enabled] = @Original_Enabled))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_High" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Low" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[DataQualityRangeLimit] ([ChannelID], [High], [Low], [RangeInclusive], [PerUnit], [Enabled]) VALUES (@ChannelID, @High, @Low, @RangeInclusive, @PerUnit, @Enabled);
SELECT ID, ChannelID, High, Low, RangeInclusive, PerUnit, Enabled FROM DataQualityRangeLimit WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, ChannelID, High, Low, RangeInclusive, PerUnit, Enabled FROM dbo.DataQualityRangeLimit</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[DataQualityRangeLimit] SET [ChannelID] = @ChannelID, [High] = @High, [Low] = @Low, [RangeInclusive] = @RangeInclusive, [PerUnit] = @PerUnit, [Enabled] = @Enabled WHERE (([ID] = @Original_ID) AND ([ChannelID] = @Original_ChannelID) AND ((@IsNull_High = 1 AND [High] IS NULL) OR ([High] = @Original_High)) AND ((@IsNull_Low = 1 AND [Low] IS NULL) OR ([Low] = @Original_Low)) AND ([RangeInclusive] = @Original_RangeInclusive) AND ([PerUnit] = @Original_PerUnit) AND ([Enabled] = @Original_Enabled));
SELECT ID, ChannelID, High, Low, RangeInclusive, PerUnit, Enabled FROM DataQualityRangeLimit WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_High" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Low" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="ChannelID" DataSetColumn="ChannelID" />
              <Mapping SourceColumn="High" DataSetColumn="High" />
              <Mapping SourceColumn="Low" DataSetColumn="Low" />
              <Mapping SourceColumn="RangeInclusive" DataSetColumn="RangeInclusive" />
              <Mapping SourceColumn="PerUnit" DataSetColumn="PerUnit" />
              <Mapping SourceColumn="Enabled" DataSetColumn="Enabled" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.DataQualityRangeLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, ChannelID, High, Low, RangeInclusive, PerUnit, Enabled FROM dbo.DataQualityRangeLimit WHERE ChannelID = @channelID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="channelID" ColumnName="ChannelID" DataSourceName="openXDA.dbo.DataQualityRangeLimit" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@channelID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataQuality" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataQuality" msprop:Generator_UserDSName="DataQuality">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="DefaultDataQualityRangeLimit" msprop:Generator_TableClassName="DefaultDataQualityRangeLimitDataTable" msprop:Generator_TableVarName="tableDefaultDataQualityRangeLimit" msprop:Generator_TablePropName="DefaultDataQualityRangeLimit" msprop:Generator_RowDeletingName="DefaultDataQualityRangeLimitRowDeleting" msprop:Generator_RowChangingName="DefaultDataQualityRangeLimitRowChanging" msprop:Generator_RowEvHandlerName="DefaultDataQualityRangeLimitRowChangeEventHandler" msprop:Generator_RowDeletedName="DefaultDataQualityRangeLimitRowDeleted" msprop:Generator_UserTableName="DefaultDataQualityRangeLimit" msprop:Generator_RowChangedName="DefaultDataQualityRangeLimitRowChanged" msprop:Generator_RowEvArgName="DefaultDataQualityRangeLimitRowChangeEvent" msprop:Generator_RowClassName="DefaultDataQualityRangeLimitRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="MeasurementTypeID" msprop:Generator_ColumnVarNameInTable="columnMeasurementTypeID" msprop:Generator_ColumnPropNameInRow="MeasurementTypeID" msprop:Generator_ColumnPropNameInTable="MeasurementTypeIDColumn" msprop:Generator_UserColumnName="MeasurementTypeID" type="xs:int" />
              <xs:element name="MeasurementCharacteristicID" msprop:Generator_ColumnVarNameInTable="columnMeasurementCharacteristicID" msprop:Generator_ColumnPropNameInRow="MeasurementCharacteristicID" msprop:Generator_ColumnPropNameInTable="MeasurementCharacteristicIDColumn" msprop:Generator_UserColumnName="MeasurementCharacteristicID" type="xs:int" />
              <xs:element name="High" msprop:Generator_ColumnVarNameInTable="columnHigh" msprop:Generator_ColumnPropNameInRow="High" msprop:Generator_ColumnPropNameInTable="HighColumn" msprop:Generator_UserColumnName="High" type="xs:double" minOccurs="0" />
              <xs:element name="Low" msprop:Generator_ColumnVarNameInTable="columnLow" msprop:Generator_ColumnPropNameInRow="Low" msprop:Generator_ColumnPropNameInTable="LowColumn" msprop:Generator_UserColumnName="Low" type="xs:double" minOccurs="0" />
              <xs:element name="RangeInclusive" msprop:Generator_ColumnVarNameInTable="columnRangeInclusive" msprop:Generator_ColumnPropNameInRow="RangeInclusive" msprop:Generator_ColumnPropNameInTable="RangeInclusiveColumn" msprop:Generator_UserColumnName="RangeInclusive" type="xs:int" />
              <xs:element name="PerUnit" msprop:Generator_ColumnVarNameInTable="columnPerUnit" msprop:Generator_ColumnPropNameInRow="PerUnit" msprop:Generator_ColumnPropNameInTable="PerUnitColumn" msprop:Generator_UserColumnName="PerUnit" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="DataQualityRangeLimit" msprop:Generator_TableClassName="DataQualityRangeLimitDataTable" msprop:Generator_TableVarName="tableDataQualityRangeLimit" msprop:Generator_TablePropName="DataQualityRangeLimit" msprop:Generator_RowDeletingName="DataQualityRangeLimitRowDeleting" msprop:Generator_RowChangingName="DataQualityRangeLimitRowChanging" msprop:Generator_RowEvHandlerName="DataQualityRangeLimitRowChangeEventHandler" msprop:Generator_RowDeletedName="DataQualityRangeLimitRowDeleted" msprop:Generator_UserTableName="DataQualityRangeLimit" msprop:Generator_RowChangedName="DataQualityRangeLimitRowChanged" msprop:Generator_RowEvArgName="DataQualityRangeLimitRowChangeEvent" msprop:Generator_RowClassName="DataQualityRangeLimitRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="ChannelID" msprop:Generator_ColumnVarNameInTable="columnChannelID" msprop:Generator_ColumnPropNameInRow="ChannelID" msprop:Generator_ColumnPropNameInTable="ChannelIDColumn" msprop:Generator_UserColumnName="ChannelID" type="xs:int" />
              <xs:element name="High" msprop:Generator_ColumnVarNameInTable="columnHigh" msprop:Generator_ColumnPropNameInRow="High" msprop:Generator_ColumnPropNameInTable="HighColumn" msprop:Generator_UserColumnName="High" type="xs:double" minOccurs="0" />
              <xs:element name="Low" msprop:Generator_ColumnVarNameInTable="columnLow" msprop:Generator_ColumnPropNameInRow="Low" msprop:Generator_ColumnPropNameInTable="LowColumn" msprop:Generator_UserColumnName="Low" type="xs:double" minOccurs="0" />
              <xs:element name="RangeInclusive" msprop:Generator_ColumnVarNameInTable="columnRangeInclusive" msprop:Generator_ColumnPropNameInRow="RangeInclusive" msprop:Generator_ColumnPropNameInTable="RangeInclusiveColumn" msprop:Generator_UserColumnName="RangeInclusive" type="xs:int" />
              <xs:element name="PerUnit" msprop:Generator_ColumnVarNameInTable="columnPerUnit" msprop:Generator_ColumnPropNameInRow="PerUnit" msprop:Generator_ColumnPropNameInTable="PerUnitColumn" msprop:Generator_UserColumnName="PerUnit" type="xs:int" />
              <xs:element name="Enabled" msprop:Generator_ColumnVarNameInTable="columnEnabled" msprop:Generator_ColumnPropNameInRow="Enabled" msprop:Generator_ColumnPropNameInTable="EnabledColumn" msprop:Generator_UserColumnName="Enabled" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:DefaultDataQualityRangeLimit" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="DataQualityRangeLimit_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:DataQualityRangeLimit" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>